package com.wch.spit.dao;

import com.wch.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * 数据访问层
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    /**
     * 自定义：根据上级ID查询列表信息
     * @param parentid
     * @param pageable
     * @return
     */
    public Page<Spit> findByParentid(String parentid, Pageable pageable);

}
